<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>QUnit Example</title>
  <link rel="stylesheet" href="../qunit.css">
</head>
<body>
hi
  <div id="qunit"></div>
  <div id="qunit-fixture"></div>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script src="../qunit.js"></script>
  <script src="../../../WebContent/client/js/lib/class.js"></script>
  <script>
  	//mock out require
  	var AStar;
  	var Pathfinder;
	var define = function (possibleFunction1, possibleFunction2) {
		if (possibleFunction1 instanceof Function){
			possibleFunction1();
		}else if(possibleFunction2 instanceof Function){
			possibleFunction2();
		}
	};
  </script>
  <script src="../../../WebContent/client/js/pathfinder.js"></script>
  <script src="../../../WebContent/client/js/lib/astar.js"></script>
  <script src="normalGrid.js"></script>
  <script>
  	$(document).ready(function(){
  		
  		module("max min int");
  		
  		test("min max int", function (){
			//findPath: function(grid, entity, x, y, findIncomplete)
			var x = 9007199254740992;
			var y = -x;
			x = x + 1;
			y = y - 1;
			equal(x, 9007199254740992, "same");
			equal(y, -9007199254740992, "same");
		});
  		
		module("pairwise test");
		
		test("first pair set", function (){
			//findPath: function(grid, entity, x, y, findIncomplete)
			var valid;
			try{
				var path = Pathfinder.findPath(normalGrid,null, null, null, true);
				console.log(path);
				valid = true;
			}catch(e){
				valid = false;
			}
			ok(!valid,"blew up as expected");
		});
		
		test("valid pair set", function (){
			//findPath: function(grid, entity, x, y, findIncomplete)
			
			//I cannot find any!
			
			ok(true, "empty");
		});
		
	});
  </script>
</body>
</html>